
; HM NIS Edit Wizard helper defines
!define PRODUCT_NAME "LeisureCenter"
!define PRODUCT_VERSION "0.7"
!define PRODUCT_PUBLISHER "cfagn"
!define PUBLISHER_WEB_SITE "http://www.cfagn.net"
!define PRODUCT_WEB_SITE "${PUBLISHER_WEB_SITE}/leisurecenter"
!define PRODUCT_DIR "$PROGRAMFILES\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}"
!define PRODUCT_DIR_REGKEY "Software\Microsoft\Windows\CurrentVersion\App Paths\${PRODUCT_NAME}.exe"
!define WINDOWS_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall"
!define PRODUCT_UNINST_KEY "${WINDOWS_UNINST_KEY}\${PRODUCT_NAME}"
!define COMPONENTS_UNINST_KEY "${PRODUCT_UNINST_KEY}\Components"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!define PRODUCT_STARTMENU_REGVAL "NSIS:StartMenuDir"
!define PRODUCT_UNINST_LANG_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"

!ifdef UPDATER
  !define INSTALLER_VERSION "-updater"
!else
  !ifdef WEB
    !define INSTALLER_VERSION "-web"
  !else
    !define INSTALLER_VERSION ""
  !endif
!endif

SetCompressor lzma

!ifndef UPDATE

; MUI 1.67 compatible ------
!include "MUI.nsh"

; MUI Settings
!define MUI_ABORTWARNING
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"

!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_BITMAP "data\LeisureCenterHeader.bmp"

; Language Selection Dialog Settings
!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}"
!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_LANG_KEY}"
!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language"

; Welcome page
!define MUI_WELCOMEFINISHPAGE_BITMAP "data\LeisureCenterWatermark.bmp"
;!define MUI_WELCOMEFINISHPAGE_BITMAP_NOSTRETCH
!ifndef UPDATER
        !insertmacro MUI_PAGE_WELCOME
!endif
; License page
;!insertmacro MUI_PAGE_LICENSE "..\lisezmoi.txt"

!else
!endif
